package modules.majiang.view
{
	/**
	 *
	 * @author xumin.xu 2013-1-25
	 */

	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.MovieClip;

	import modules.load.Load;

	public class TablePotCard extends MovieClip
	{
		private var _tableCard:MovieClip;

		private function get tableCard():MovieClip
		{
			if (_tableCard == null)
			{
				_tableCard = Load.getInstance("fla.view.majiang.TableCard");
			}
			return _tableCard;
		}

		public var front:Bitmap;

		public function TablePotCard()
		{
			super();

			tableCard && addChild(tableCard);

			front = new Bitmap();
			front.visible = false;
			addChild(front);
		}

		public function setFront(bitmapData:BitmapData):void
		{
			if (bitmapData != null)
			{
				front.visible = true;
				front.bitmapData = bitmapData;
			}
			else
			{
				front.visible = false;
			}
		}
	}
}
